package com.ym521.simple

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.ym521.skeleton.Skeleton

class RecyclerViewSkeletonActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_recycler_view_skeleton)
        val rlvView = findViewById<RecyclerView>(R.id.rlvView)
        rlvView.layoutManager = LinearLayoutManager(this,LinearLayoutManager.VERTICAL,false)
        Skeleton.bind(rlvView)
            .load(R.layout.skeleton_view_item)
            .angle(20)
            .duration(1500)
            .count(20)
            .show()
    }
}